package cn.edu.ahu.aircondition.storage.realtime.domain;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "process_status_cur")
public class ProcessStatusCurEntity {
  private Integer process_info_id;
  private String status;
  private Float cpu_percent;
  private Long mem_info;
  private Float cpu_time;
  private Integer pid;
  private Float mem_percent;
  private Date collect_time;

  @Id
  public Integer getProcess_info_id() {
    return process_info_id;
  }

  public void setProcess_info_id(Integer process_info_id) {
    this.process_info_id = process_info_id;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Float getCpu_percent() {
    return cpu_percent;
  }

  public void setCpu_percent(Float cpu_percent) {
    this.cpu_percent = cpu_percent;
  }

  public Long getMem_info() {
    return mem_info;
  }

  public void setMem_info(Long mem_info) {
    this.mem_info = mem_info;
  }

  public Float getCpu_time() {
    return cpu_time;
  }

  public void setCpu_time(Float cpu_time) {
    this.cpu_time = cpu_time;
  }

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public Float getMem_percent() {
    return mem_percent;
  }

  public void setMem_percent(Float mem_percent) {
    this.mem_percent = mem_percent;
  }

  public Date getCollect_time() {
    return collect_time;
  }

  public void setCollect_time(Date collect_time) {
    this.collect_time = collect_time;
  }

  public void setCollect_time(Long collect_time) {
    this.collect_time = new Date(collect_time);
  }
}
